Ext.define('sheath.view.main.AddTask', {
    extend: 'Ext.form.Panel',
    xtype: 'addTask',
    width: 400,
    height: 250,
    layout: 'fit',
    plain: true,   
    items: [{
        xtype: 'form',
        defaultType: 'textfield',
        fieldDefaults: {
            labelWidth: 100
        },       
        layout: {
            type: 'vbox',
            align: 'stretch'
        },     
        bodyPadding: 10,
        // margin:'10 0 0 0',
        border: false,
        items: [{
           fieldLabel: '主用例编码'
        }, {
           fieldLabel: '主用例名称'
        },{
            xtype: 'combobox',
            reference: 'states',
            publishes: 'value',
            fieldLabel: '等级',            
            queryMode: 'local',
            triggerAction: 'all',
            editable: false,
            name: '',
            displayField: 'name',
            valueField: 'value',
            store: {
                fields: ['name', 'value'],
                data: [
                    { name: '全部', value: '' },
                    { name: 'S', value: '0' },
                    { name: 'A', value: '1' },
                    { name: 'B', value: '1' },
                    { name: 'C', value: '1' },
                ]
            }  
        },{
            xtype: 'combobox',
            reference: 'states',
            publishes: 'value',
            fieldLabel: '状态',
            queryMode: 'local',
            triggerAction: 'all',
            editable: false,
            name: '',
            displayField: 'name',
            valueField: 'value',
            store: {
                fields: ['name', 'value'],
                data: [
                    { name: '全部', value: '' },
                    { name: '待填充', value: '0' },
                    { name: '待评审', value: '1' },
                    { name: '待执行', value: '2' },
                    { name: '已通过', value: '3' },
                    { name: '未通过', value: '4' },
                    { name: '回归中', value: '5' },
                    { name: '作废', value: '6' },                                                                                            
                ]
            }        
        }]
    }],

    buttons: [{
        text: '确定',
        
    },{
        text: '取消'
    }]
});